Ext.onReady(function(){
	Setting.initPage();
});

var Setting={
		initPage: function(){
			Ext.create('Ext.container.Viewport', {
			    layout: 'border',
			    frame:false,
			    border:false,
			    items: [{
			    	id: 'mainPanel',
			        region: 'center',
			        layout: 'fit',
			        items:[Setting.createSystemStyleGrid()]
			    }]
			});
		},
		/**
		 * 创建用户系统风格
		 */
		createSystemStyleGrid: function(){
			var grid = Ext.create('Ext.com.bkfm.datagrid', {
				id: "sysStyle",
				objPath : "ROOT/XTGLPT/XTSZ/BLK_THEMES",
				border: true,
				customBtn:[{
					text: '导出',
					iconCls: 'export',
					handler: function(){
						grid.exportGridDate();
					}
				},{
					text: '导入',
					iconCls: 'import',
					handler: function(){
						grid.importGridData();
					}
				}]
			});
			
			return grid;
		}
}